using System;
using UnityEngine;

[Serializable]
public class highscore : MonoBehaviour
{
	public int score;

	public string prefix;

	public string scoresave;

	public GUIText text;

	public StadiumSelect3D load;

	public string arcadescene;

	public string regularscene;

	public highscore()
	{
		prefix = "Hi-Score: ";
		scoresave = string.Empty;
		arcadescene = string.Empty;
		regularscene = string.Empty;
	}

	public void Update()
	{
		if (PlayerPrefs.GetInt("Arcade") == 1)
		{
			score = PlayerPrefs.GetInt(scoresave);
			text.text = "Hi-Score: " + score;
			load.arenatoload = arcadescene;
		}
		else
		{
			load.arenatoload = regularscene;
		}
	}

	public void Main()
	{
	}
}
